home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2003 December / The Sunday Times - The Month 2003-12.iso / mac / The Month DEC 03 / engine / modules / thumbs_wide.swf / scripts / DefineSprite_7 / frame_1 / DoAction.as
Text File  |  2003-10-02  |  727b  |  31 lines

  1. function init()
  2. {
  3.    num = _name.split("_")[2];
  4.    var nd = _parent._parent.nodeData.childNodes[num];
  5.    link = nd.attributes.link;
  6.    titleFF.htmlText = nd.byName("thumbtitle").getText();
  7.    titleFF.textColor = _parent._parent.DEFAULT_COLOR;
  8.    imgToCheck = eval("_parent.mc_img_" + num);
  9.    this.intervalID = setInterval(checkLoad,300,this);
  10. }
  11. function checkLoad(mc)
  12. {
  13.    if(imgToCheck._height > 0)
  14.    {
  15.       if(!positioned)
  16.       {
  17.          positioned = true;
  18.          _parent._parent.positionElements(mc);
  19.          clearInterval(this.intervalID);
  20.       }
  21.    }
  22. }
  23. var positioned = false;
  24. _visible = false;
  25. this.onUnload = function()
  26. {
  27.    clearInterval(this.intervalID);
  28. };
  29. init();
  30. delete init;
  31.